<?php

/*

Penny Play (penny_play.php)

*/

$rank_check = 1;
$page_title = "Penny Play";
include "header.inc.php";

print $openHTML;

$numEntries = fetch("SELECT sum(entries) AS entries FROM penny_play2 WHERE game = '$game'");
$jackpot = round($numEntries[entries] * .95);

print "

<p>Welcome to penny play, here's how it works, you can put in as many or as little $pointsVar as you want, every little $pointsVar will get you one chance to win the HUGE jackpot. The jackpot raises with every entry, 95% of all the ticket sales go to the winner of the jackpot! This is a daily contest, so be sure to check back every day to see the winner and to get your bid in! So enter the number of tickets you want and click buy. Remember, only 1 $pointsVar per ticket!! So stock up! The jackpot is already at <b>$jackpot</b> $pointsVar!</p>

<form action=penny_play.pro.php?game=$game method=post>
<P align=center><TABLE BGCOLOR=\"$topAndBottomBG\" CELLSPACING=1 CELLPADDING=0 WIDTH=300>
   <TR BGCOLOR=\"$topAndBottomBG\">
      <TD HEIGHT=50>
         <CENTER><FONT SIZE=\"+3\" COLOR=\"$topAndBottomText\"><B>--Buy Tickets --
         </B></FONT></CENTER>
      </TD>
   </TR>
   <TR BGCOLOR=\"$maincellColor\">
      <TD HEIGHT=90>
         <CENTER><B>I would like to buy:</B><FONT SIZE=\"-1\"><BR>
         <INPUT TYPE=text NAME=buy_tickets VALUE=\"\" SIZE=15><BR>
         </FONT><B>tickets</B></CENTER>
      </TD>
   </TR>
   <TR BGCOLOR=\"$topAndBottomBG\">
      <TD HEIGHT=30>
         <CENTER><FONT SIZE=\"-1\"><INPUT TYPE=submit NAME=Submit VALUE=\"Buy Tickets\"></FONT></CENTER>
      </TD>
   </TR>
</TABLE>
</P>
</form>

";

print $closeHTML;

?>